import { createApp } from 'vue'
import App from './App.vue'
import  '@/assets/less/index.less'
import router from '@/router/index.js';
// 全部引入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import {createPinia} from "pinia";
import * as ElementPlusIconVue from '@element-plus/icons-vue'
import '@/api/mock.js'
import api from '@/api/api';
let app = createApp(App);
const pinia = createPinia()

//注册全局属性
app.config.globalProperties.$api=api
app.use(router)
app.use(ElementPlus)
app.use(pinia)


app.mount('#app')

for (const [key,component] of Object.entries(ElementPlusIconVue)){
    app.component(key,component);
}



